package com.air.ota.vo;

import com.air.ota.util.HexStringUtil;

public class SZTDepositResTransVO extends SZTBaseResTransVO {
	
	protected byte[] cardAppSequence;
	protected byte[] mac2;
	protected byte[] depositTransSequence;
	
	public SZTDepositResTransVO(){
		super();
		this.cardAppSequence = new byte[8];
		this.mac2 = new byte[4];
		this.depositTransSequence = new byte[4];
	}
	
	@Override
	public void parse(byte[] pkg){
		super.parse(pkg);
		
		if (this.getTransResult()==0x00){
			System.arraycopy(this.transResponseData, 0, cardAppSequence, 0, 8);
			System.arraycopy(this.transResponseData, 8, mac2, 0, 4);
			System.arraycopy(this.transResponseData, 12, depositTransSequence, 0, 4);
		}
	}

	public byte[] getCardAppSequence() {
		return cardAppSequence;
	}

	public byte[] getMac2() {
		return mac2;
	}

	public byte[] getDepositTransSequence() {
		return depositTransSequence;
	}
	
	
	
	
	
}
